package com.goldcn.user.dao;

import com.goldcn.user.model.SubjectGoods;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SubjectGoodsMapper {
    int deleteByPrimaryKey(Long id);

    int insert(SubjectGoods record);

    int insertSelective(SubjectGoods record);

    SubjectGoods selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(SubjectGoods record);

    int updateByPrimaryKey(SubjectGoods record);

    int deleteBySubjectID(Long subjectID);

    int batchInsert(List<SubjectGoods> subjectGoodsList);

    List<SubjectGoods> selectBySubjectID(Long subjectID);

    int deleteByCompanyIDAndGoodsID(@Param(value = "companyID") Long companyID, @Param(value = "goodsID") Long goodsID);
}